package com.hxw.schema.observer;

/**
 * Created by Think on 2018/5/5.
 */
public class Client {
    public static void main(String[] args) {
        //观察者
        Observer observer = new NBAObjserver("张三");
        Observer observer1 = new NBAObjserver("李四");
        //通知者
        Subject subject = new SecretSubject();
        subject.attach(observer);
        subject.notice();
    }
}
